﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;

namespace OnlineRecruit
{
    public partial class JianLichaungjian : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // 加载当前简历信息，假设数据来自数据库
                txtFullName.Text = "张三";
                txtEmail.Text = "zhangsan@example.com";
                txtPhone.Text = "13800138000";
                ddlEducation.SelectedValue = "本科";
                txtExperience.Text = "3.5 年";
                txtIntroduction.Text = "具有3年以上前端开发经验，熟练掌握HTML、CSS、JavaScript等技术...";
            }
        }

        protected void SaveChanges(object sender, EventArgs e)
        {
            // 保存修改后的简历数据到数据库或其他存储


            string fullName = txtFullName.Text;
            string email = txtEmail.Text;
            string phone = txtPhone.Text;
            string education = ddlEducation.SelectedValue;
            string experience = txtExperience.Text;
            string introduction = txtIntroduction.Text;

            // 示例：保存数据到数据库（此处只是打印出来）
            // 保存代码...


            // 提示保存成功
            Response.Write("<script>alert('简历修改成功！');</script>");
        }

        protected void CancelEdit(object sender, EventArgs e)
        {
            // 返回到简历预览页或其他页面
            Response.Redirect("jianliyulan.aspx");  // 跳转到简历预览页
        }

        protected void ddlEducation_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}